package com.chen.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author chen
 * @since 2022-01-24
 */
@Data
@TableName("t_blog_tag")
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "BlogTag对象", description = "")
public class BlogTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标签id")
    @TableField("tag_id")
    private Integer tagId;

    @ApiModelProperty("博客id")
    @TableField("blog_id")
    private Integer blogId;


}
